body {
  background-color: #f8f9fa;
}

.container {
  max-width: 1400px; /* 增加宽度以适应9个查询字段 */
  margin: auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.card {
  margin-bottom: 20px;
  border: 1px solid #e3e6f0;
  border-radius: 8px;
}

.card-header {
  background-color: #007bff;
  color: #fff;
  font-weight: bold;
  border-bottom: 1px solid #e3e6f0;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.card-body {
  padding: 20px;
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-control {
  border-radius: 4px;
  border: 1px solid #ced4da;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  transition: border-color 0.3s;
  font-size: 0.9rem;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

#fixed-search-container {
  background-color: #fff;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  border-radius: 8px;
}

#scrollable-content {
  overflow-y: auto;
  padding: 20px;
  background-color: #f8f9fa;
}

#pagination-bar button.page-btn {
  margin: 0 2px;
  padding: 3px 10px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  cursor: pointer;
  border-radius: 3px;
  font-size: 14px;
}

#pagination-bar button.page-btn.active {
  background: #409eff;
  color: #fff;
  border-color: #409eff;
}

#pagination-bar button.page-btn:disabled {
  background: #eee;
  color: #aaa;
  cursor: not-allowed;
}

.student-info-bar-row {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1.5rem;
  background-color: #e9ecef;
  padding: 15px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.student-info-bar-row.show {
  display: flex;
}

#history-table-area {
  display: none;
  min-height: 200px;
  width: 100%;
}

#history-table-area.show {
  display: block;
}

#history-table-area .card {
  min-height: 150px;
}

/* 表单分组样式 */
.form-section {
  border: 1px solid #e3e6f0;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
  background-color: #fafbfc;
}

.form-section h6 {
  color: #495057;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #007bff;
}

/* 查询结果表格样式 */
#search-results .table-responsive {
  margin: 0;
}

#search-results .table {
  margin-bottom: 0;
  table-layout: auto;
}

#search-results .table th,
#search-results .table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 8px 12px;
  vertical-align: middle;
}

#search-results .table th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  font-size: 0.875rem;
}

#search-results .table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: rgba(0, 0, 0, 0.02);
}

#search-results .table-hover > tbody > tr:hover > td {
  background-color: rgba(0, 123, 255, 0.1);
}

/* 操作按钮列样式 */
#search-results .table td[data-field="actions"] {
  white-space: nowrap;
  text-align: center;
}

#search-results .table td[data-field="actions"] .btn {
  margin: 0 2px;
  padding: 4px 8px;
  font-size: 0.75rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .col-md-2, .col-md-3, .col-md-4 {
    margin-bottom: 15px;
  }
  
  .student-info-bar-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
